<?php 
class IndexController extends Zend_Controller_Action{
	public function indexAction(){
		//echo 'acd';
		//$this->view->view = "this is indexAction";
	}
	
	public function menuAction(){
		$topmenu = new Frontend_Model_Index();
		$rstopmenu = $topmenu->getCategories();
		$this->view->rstopmenu = $rstopmenu;
		//menu cap 2
		$submenu = $topmenu->getComponents();
		$this->view->rstopmenu = $rstopmenu;
		
		$this->view->submenu = $submenu;
		//print_r($submenu);die;
	}
	
	/*
	*@auth: vuhai4187
	*@date: 30.10.2011
	*@return 
	*/
	public function featuredAction(){
		$featured = new Frontend_Model_Index();
		$featuredpost = $featured->getFeaturedPost();
		$this->view->featuredpost = $featuredpost;
	}
	
	
	/*
	* @vuhai4187
	* @date 30.10.2011
	* @return footer in e4c
	*/
	public function footerAction(){
		$topmenu = new Frontend_Model_Index();
		$rstopmenu = $topmenu->getCategories();
		$this->view->rstopmenu = $rstopmenu;
	}
}